package com.liveneo.adapter.base.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 组织机构表 条件工具类
 * 
 * @author fucy
 * @since 2016-06-05
 */
public class PrpmOrgExample {
    protected String         orderByClause;
    protected boolean        distinct;
    protected List<Criteria> oredCriteria;

    public PrpmOrgExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * 组织机构表
     * 数据库表：prpm_org
     * 
     * @author fucy
     * @since 2016-06-05
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNull() {
            addCriterion("OrgCode is null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNotNull() {
            addCriterion("OrgCode is not null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeEqualTo(String value) {
            addCriterion("OrgCode =", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotEqualTo(String value) {
            addCriterion("OrgCode <>", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThan(String value) {
            addCriterion("OrgCode >", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThanOrEqualTo(String value) {
            addCriterion("OrgCode >=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThan(String value) {
            addCriterion("OrgCode <", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThanOrEqualTo(String value) {
            addCriterion("OrgCode <=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLike(String value) {
            addCriterion("OrgCode like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotLike(String value) {
            addCriterion("OrgCode not like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIn(List<String> values) {
            addCriterion("OrgCode in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotIn(List<String> values) {
            addCriterion("OrgCode not in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeBetween(String value1, String value2) {
            addCriterion("OrgCode between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotBetween(String value1, String value2) {
            addCriterion("OrgCode not between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgNameIsNull() {
            addCriterion("OrgName is null");
            return (Criteria) this;
        }

        public Criteria andOrgNameIsNotNull() {
            addCriterion("OrgName is not null");
            return (Criteria) this;
        }

        public Criteria andOrgNameEqualTo(String value) {
            addCriterion("OrgName =", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameNotEqualTo(String value) {
            addCriterion("OrgName <>", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameGreaterThan(String value) {
            addCriterion("OrgName >", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameGreaterThanOrEqualTo(String value) {
            addCriterion("OrgName >=", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameLessThan(String value) {
            addCriterion("OrgName <", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameLessThanOrEqualTo(String value) {
            addCriterion("OrgName <=", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameLike(String value) {
            addCriterion("OrgName like", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameNotLike(String value) {
            addCriterion("OrgName not like", value, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameIn(List<String> values) {
            addCriterion("OrgName in", values, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameNotIn(List<String> values) {
            addCriterion("OrgName not in", values, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameBetween(String value1, String value2) {
            addCriterion("OrgName between", value1, value2, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgNameNotBetween(String value1, String value2) {
            addCriterion("OrgName not between", value1, value2, "orgName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameIsNull() {
            addCriterion("OrgShortName is null");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameIsNotNull() {
            addCriterion("OrgShortName is not null");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameEqualTo(String value) {
            addCriterion("OrgShortName =", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameNotEqualTo(String value) {
            addCriterion("OrgShortName <>", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameGreaterThan(String value) {
            addCriterion("OrgShortName >", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameGreaterThanOrEqualTo(String value) {
            addCriterion("OrgShortName >=", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameLessThan(String value) {
            addCriterion("OrgShortName <", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameLessThanOrEqualTo(String value) {
            addCriterion("OrgShortName <=", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameLike(String value) {
            addCriterion("OrgShortName like", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameNotLike(String value) {
            addCriterion("OrgShortName not like", value, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameIn(List<String> values) {
            addCriterion("OrgShortName in", values, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameNotIn(List<String> values) {
            addCriterion("OrgShortName not in", values, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameBetween(String value1, String value2) {
            addCriterion("OrgShortName between", value1, value2, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgShortNameNotBetween(String value1, String value2) {
            addCriterion("OrgShortName not between", value1, value2, "orgShortName");
            return (Criteria) this;
        }

        public Criteria andOrgPidIsNull() {
            addCriterion("OrgPid is null");
            return (Criteria) this;
        }

        public Criteria andOrgPidIsNotNull() {
            addCriterion("OrgPid is not null");
            return (Criteria) this;
        }

        public Criteria andOrgPidEqualTo(String value) {
            addCriterion("OrgPid =", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidNotEqualTo(String value) {
            addCriterion("OrgPid <>", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidGreaterThan(String value) {
            addCriterion("OrgPid >", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidGreaterThanOrEqualTo(String value) {
            addCriterion("OrgPid >=", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidLessThan(String value) {
            addCriterion("OrgPid <", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidLessThanOrEqualTo(String value) {
            addCriterion("OrgPid <=", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidLike(String value) {
            addCriterion("OrgPid like", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidNotLike(String value) {
            addCriterion("OrgPid not like", value, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidIn(List<String> values) {
            addCriterion("OrgPid in", values, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidNotIn(List<String> values) {
            addCriterion("OrgPid not in", values, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidBetween(String value1, String value2) {
            addCriterion("OrgPid between", value1, value2, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidNotBetween(String value1, String value2) {
            addCriterion("OrgPid not between", value1, value2, "orgPid");
            return (Criteria) this;
        }

        public Criteria andOrgPidsIsNull() {
            addCriterion("OrgPids is null");
            return (Criteria) this;
        }

        public Criteria andOrgPidsIsNotNull() {
            addCriterion("OrgPids is not null");
            return (Criteria) this;
        }

        public Criteria andOrgPidsEqualTo(String value) {
            addCriterion("OrgPids =", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsNotEqualTo(String value) {
            addCriterion("OrgPids <>", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsGreaterThan(String value) {
            addCriterion("OrgPids >", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsGreaterThanOrEqualTo(String value) {
            addCriterion("OrgPids >=", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsLessThan(String value) {
            addCriterion("OrgPids <", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsLessThanOrEqualTo(String value) {
            addCriterion("OrgPids <=", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsLike(String value) {
            addCriterion("OrgPids like", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsNotLike(String value) {
            addCriterion("OrgPids not like", value, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsIn(List<String> values) {
            addCriterion("OrgPids in", values, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsNotIn(List<String> values) {
            addCriterion("OrgPids not in", values, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsBetween(String value1, String value2) {
            addCriterion("OrgPids between", value1, value2, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgPidsNotBetween(String value1, String value2) {
            addCriterion("OrgPids not between", value1, value2, "orgPids");
            return (Criteria) this;
        }

        public Criteria andOrgTypeIsNull() {
            addCriterion("OrgType is null");
            return (Criteria) this;
        }

        public Criteria andOrgTypeIsNotNull() {
            addCriterion("OrgType is not null");
            return (Criteria) this;
        }

        public Criteria andOrgTypeEqualTo(String value) {
            addCriterion("OrgType =", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeNotEqualTo(String value) {
            addCriterion("OrgType <>", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeGreaterThan(String value) {
            addCriterion("OrgType >", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeGreaterThanOrEqualTo(String value) {
            addCriterion("OrgType >=", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeLessThan(String value) {
            addCriterion("OrgType <", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeLessThanOrEqualTo(String value) {
            addCriterion("OrgType <=", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeLike(String value) {
            addCriterion("OrgType like", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeNotLike(String value) {
            addCriterion("OrgType not like", value, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeIn(List<String> values) {
            addCriterion("OrgType in", values, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeNotIn(List<String> values) {
            addCriterion("OrgType not in", values, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeBetween(String value1, String value2) {
            addCriterion("OrgType between", value1, value2, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgTypeNotBetween(String value1, String value2) {
            addCriterion("OrgType not between", value1, value2, "orgType");
            return (Criteria) this;
        }

        public Criteria andOrgGradeIsNull() {
            addCriterion("OrgGrade is null");
            return (Criteria) this;
        }

        public Criteria andOrgGradeIsNotNull() {
            addCriterion("OrgGrade is not null");
            return (Criteria) this;
        }

        public Criteria andOrgGradeEqualTo(String value) {
            addCriterion("OrgGrade =", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeNotEqualTo(String value) {
            addCriterion("OrgGrade <>", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeGreaterThan(String value) {
            addCriterion("OrgGrade >", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeGreaterThanOrEqualTo(String value) {
            addCriterion("OrgGrade >=", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeLessThan(String value) {
            addCriterion("OrgGrade <", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeLessThanOrEqualTo(String value) {
            addCriterion("OrgGrade <=", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeLike(String value) {
            addCriterion("OrgGrade like", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeNotLike(String value) {
            addCriterion("OrgGrade not like", value, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeIn(List<String> values) {
            addCriterion("OrgGrade in", values, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeNotIn(List<String> values) {
            addCriterion("OrgGrade not in", values, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeBetween(String value1, String value2) {
            addCriterion("OrgGrade between", value1, value2, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgGradeNotBetween(String value1, String value2) {
            addCriterion("OrgGrade not between", value1, value2, "orgGrade");
            return (Criteria) this;
        }

        public Criteria andOrgFlagIsNull() {
            addCriterion("OrgFlag is null");
            return (Criteria) this;
        }

        public Criteria andOrgFlagIsNotNull() {
            addCriterion("OrgFlag is not null");
            return (Criteria) this;
        }

        public Criteria andOrgFlagEqualTo(String value) {
            addCriterion("OrgFlag =", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagNotEqualTo(String value) {
            addCriterion("OrgFlag <>", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagGreaterThan(String value) {
            addCriterion("OrgFlag >", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagGreaterThanOrEqualTo(String value) {
            addCriterion("OrgFlag >=", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagLessThan(String value) {
            addCriterion("OrgFlag <", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagLessThanOrEqualTo(String value) {
            addCriterion("OrgFlag <=", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagLike(String value) {
            addCriterion("OrgFlag like", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagNotLike(String value) {
            addCriterion("OrgFlag not like", value, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagIn(List<String> values) {
            addCriterion("OrgFlag in", values, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagNotIn(List<String> values) {
            addCriterion("OrgFlag not in", values, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagBetween(String value1, String value2) {
            addCriterion("OrgFlag between", value1, value2, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgFlagNotBetween(String value1, String value2) {
            addCriterion("OrgFlag not between", value1, value2, "orgFlag");
            return (Criteria) this;
        }

        public Criteria andOrgVcidIsNull() {
            addCriterion("OrgVcid is null");
            return (Criteria) this;
        }

        public Criteria andOrgVcidIsNotNull() {
            addCriterion("OrgVcid is not null");
            return (Criteria) this;
        }

        public Criteria andOrgVcidEqualTo(String value) {
            addCriterion("OrgVcid =", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidNotEqualTo(String value) {
            addCriterion("OrgVcid <>", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidGreaterThan(String value) {
            addCriterion("OrgVcid >", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidGreaterThanOrEqualTo(String value) {
            addCriterion("OrgVcid >=", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidLessThan(String value) {
            addCriterion("OrgVcid <", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidLessThanOrEqualTo(String value) {
            addCriterion("OrgVcid <=", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidLike(String value) {
            addCriterion("OrgVcid like", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidNotLike(String value) {
            addCriterion("OrgVcid not like", value, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidIn(List<String> values) {
            addCriterion("OrgVcid in", values, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidNotIn(List<String> values) {
            addCriterion("OrgVcid not in", values, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidBetween(String value1, String value2) {
            addCriterion("OrgVcid between", value1, value2, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgVcidNotBetween(String value1, String value2) {
            addCriterion("OrgVcid not between", value1, value2, "orgVcid");
            return (Criteria) this;
        }

        public Criteria andOrgSkillIsNull() {
            addCriterion("OrgSkill is null");
            return (Criteria) this;
        }

        public Criteria andOrgSkillIsNotNull() {
            addCriterion("OrgSkill is not null");
            return (Criteria) this;
        }

        public Criteria andOrgSkillEqualTo(String value) {
            addCriterion("OrgSkill =", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillNotEqualTo(String value) {
            addCriterion("OrgSkill <>", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillGreaterThan(String value) {
            addCriterion("OrgSkill >", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillGreaterThanOrEqualTo(String value) {
            addCriterion("OrgSkill >=", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillLessThan(String value) {
            addCriterion("OrgSkill <", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillLessThanOrEqualTo(String value) {
            addCriterion("OrgSkill <=", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillLike(String value) {
            addCriterion("OrgSkill like", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillNotLike(String value) {
            addCriterion("OrgSkill not like", value, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillIn(List<String> values) {
            addCriterion("OrgSkill in", values, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillNotIn(List<String> values) {
            addCriterion("OrgSkill not in", values, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillBetween(String value1, String value2) {
            addCriterion("OrgSkill between", value1, value2, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgSkillNotBetween(String value1, String value2) {
            addCriterion("OrgSkill not between", value1, value2, "orgSkill");
            return (Criteria) this;
        }

        public Criteria andOrgAddrIsNull() {
            addCriterion("OrgAddr is null");
            return (Criteria) this;
        }

        public Criteria andOrgAddrIsNotNull() {
            addCriterion("OrgAddr is not null");
            return (Criteria) this;
        }

        public Criteria andOrgAddrEqualTo(String value) {
            addCriterion("OrgAddr =", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrNotEqualTo(String value) {
            addCriterion("OrgAddr <>", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrGreaterThan(String value) {
            addCriterion("OrgAddr >", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrGreaterThanOrEqualTo(String value) {
            addCriterion("OrgAddr >=", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrLessThan(String value) {
            addCriterion("OrgAddr <", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrLessThanOrEqualTo(String value) {
            addCriterion("OrgAddr <=", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrLike(String value) {
            addCriterion("OrgAddr like", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrNotLike(String value) {
            addCriterion("OrgAddr not like", value, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrIn(List<String> values) {
            addCriterion("OrgAddr in", values, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrNotIn(List<String> values) {
            addCriterion("OrgAddr not in", values, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrBetween(String value1, String value2) {
            addCriterion("OrgAddr between", value1, value2, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgAddrNotBetween(String value1, String value2) {
            addCriterion("OrgAddr not between", value1, value2, "orgAddr");
            return (Criteria) this;
        }

        public Criteria andOrgContactsIsNull() {
            addCriterion("OrgContacts is null");
            return (Criteria) this;
        }

        public Criteria andOrgContactsIsNotNull() {
            addCriterion("OrgContacts is not null");
            return (Criteria) this;
        }

        public Criteria andOrgContactsEqualTo(String value) {
            addCriterion("OrgContacts =", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsNotEqualTo(String value) {
            addCriterion("OrgContacts <>", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsGreaterThan(String value) {
            addCriterion("OrgContacts >", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsGreaterThanOrEqualTo(String value) {
            addCriterion("OrgContacts >=", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsLessThan(String value) {
            addCriterion("OrgContacts <", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsLessThanOrEqualTo(String value) {
            addCriterion("OrgContacts <=", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsLike(String value) {
            addCriterion("OrgContacts like", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsNotLike(String value) {
            addCriterion("OrgContacts not like", value, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsIn(List<String> values) {
            addCriterion("OrgContacts in", values, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsNotIn(List<String> values) {
            addCriterion("OrgContacts not in", values, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsBetween(String value1, String value2) {
            addCriterion("OrgContacts between", value1, value2, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgContactsNotBetween(String value1, String value2) {
            addCriterion("OrgContacts not between", value1, value2, "orgContacts");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneIsNull() {
            addCriterion("OrgOfficePhone is null");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneIsNotNull() {
            addCriterion("OrgOfficePhone is not null");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneEqualTo(String value) {
            addCriterion("OrgOfficePhone =", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneNotEqualTo(String value) {
            addCriterion("OrgOfficePhone <>", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneGreaterThan(String value) {
            addCriterion("OrgOfficePhone >", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneGreaterThanOrEqualTo(String value) {
            addCriterion("OrgOfficePhone >=", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneLessThan(String value) {
            addCriterion("OrgOfficePhone <", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneLessThanOrEqualTo(String value) {
            addCriterion("OrgOfficePhone <=", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneLike(String value) {
            addCriterion("OrgOfficePhone like", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneNotLike(String value) {
            addCriterion("OrgOfficePhone not like", value, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneIn(List<String> values) {
            addCriterion("OrgOfficePhone in", values, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneNotIn(List<String> values) {
            addCriterion("OrgOfficePhone not in", values, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneBetween(String value1, String value2) {
            addCriterion("OrgOfficePhone between", value1, value2, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgOfficePhoneNotBetween(String value1, String value2) {
            addCriterion("OrgOfficePhone not between", value1, value2, "orgOfficePhone");
            return (Criteria) this;
        }

        public Criteria andOrgSortIsNull() {
            addCriterion("OrgSort is null");
            return (Criteria) this;
        }

        public Criteria andOrgSortIsNotNull() {
            addCriterion("OrgSort is not null");
            return (Criteria) this;
        }

        public Criteria andOrgSortEqualTo(String value) {
            addCriterion("OrgSort =", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortNotEqualTo(String value) {
            addCriterion("OrgSort <>", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortGreaterThan(String value) {
            addCriterion("OrgSort >", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortGreaterThanOrEqualTo(String value) {
            addCriterion("OrgSort >=", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortLessThan(String value) {
            addCriterion("OrgSort <", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortLessThanOrEqualTo(String value) {
            addCriterion("OrgSort <=", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortLike(String value) {
            addCriterion("OrgSort like", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortNotLike(String value) {
            addCriterion("OrgSort not like", value, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortIn(List<String> values) {
            addCriterion("OrgSort in", values, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortNotIn(List<String> values) {
            addCriterion("OrgSort not in", values, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortBetween(String value1, String value2) {
            addCriterion("OrgSort between", value1, value2, "orgSort");
            return (Criteria) this;
        }

        public Criteria andOrgSortNotBetween(String value1, String value2) {
            addCriterion("OrgSort not between", value1, value2, "orgSort");
            return (Criteria) this;
        }

        public Criteria andValidStatusIsNull() {
            addCriterion("ValidStatus is null");
            return (Criteria) this;
        }

        public Criteria andValidStatusIsNotNull() {
            addCriterion("ValidStatus is not null");
            return (Criteria) this;
        }

        public Criteria andValidStatusEqualTo(Boolean value) {
            addCriterion("ValidStatus =", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusNotEqualTo(Boolean value) {
            addCriterion("ValidStatus <>", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusGreaterThan(Boolean value) {
            addCriterion("ValidStatus >", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("ValidStatus >=", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusLessThan(Boolean value) {
            addCriterion("ValidStatus <", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("ValidStatus <=", value, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusIn(List<Boolean> values) {
            addCriterion("ValidStatus in", values, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusNotIn(List<Boolean> values) {
            addCriterion("ValidStatus not in", values, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("ValidStatus between", value1, value2, "validStatus");
            return (Criteria) this;
        }

        public Criteria andValidStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("ValidStatus not between", value1, value2, "validStatus");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("CreateBy is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("CreateBy is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("CreateBy =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("CreateBy <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("CreateBy >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("CreateBy >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("CreateBy <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("CreateBy <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("CreateBy like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("CreateBy not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("CreateBy in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("CreateBy not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("CreateBy between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("CreateBy not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("UpdateBy is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("UpdateBy is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(String value) {
            addCriterion("UpdateBy =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(String value) {
            addCriterion("UpdateBy <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(String value) {
            addCriterion("UpdateBy >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("UpdateBy >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(String value) {
            addCriterion("UpdateBy <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("UpdateBy <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLike(String value) {
            addCriterion("UpdateBy like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotLike(String value) {
            addCriterion("UpdateBy not like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<String> values) {
            addCriterion("UpdateBy in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<String> values) {
            addCriterion("UpdateBy not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(String value1, String value2) {
            addCriterion("UpdateBy between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("UpdateBy not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table prpm_org
     *
     * @mbggenerated do_not_delete_during_merge Mon Jun 06 11:29:27 CST 2016
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    /**
     * 组织机构表
     * 数据库表：prpm_org
     * 
     * @author fucy
     * @since 2016-06-05
     */
    public static class Criterion {
        private String  condition;
        private Object  value;
        private Object  secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String  typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}